package kr.saeildamil.androidstudy.ch14;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.Button;

public class AttributeButton extends Button {
	String mText = null;
	
	public AttributeButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		
		String name;
		String Value;
		
		for(int i=0; i<attrs.getAttributeCount();i++){
			name = attrs.getAttributeName(i);
			Value = attrs.getAttributeValue(i);
			mText += (name + " = " + Value + "\n");
		}
	}
	
}
